-- GENERATED SPELL FOR [Vile Fin Oracle] --


function spell0_1908(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(913,pUnit)
pUnit:RegisterEvent('Sorts_1908', 3000, 1)
end

function spell1_1908(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(2606,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1908', 0, 1)
end

function Sorts_1908(pUnit, Event)
local choix_sorts_1908 = math.random(0, 1)
if choix_sorts_1908 == 0 then
pUnit:RegisterEvent('spell0_1908', 1, 1)
end
if choix_sorts_1908 == 1 then
pUnit:RegisterEvent('spell1_1908', 1, 1)
end
end

function mob1908_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1908', math.random(1500, 3000), 1)
end

function mob1908_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1908_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1908_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1908, 1, 'mob1908_Action')
RegisterUnitEvent(1908, 2, 'mob1908_Leave')
RegisterUnitEvent(1908, 3, 'mob1908_Kill')
RegisterUnitEvent(1908, 4, 'mob1908_Die')
